/*
 * @Author: mikey.zhaopeng 
 * @Date: 2021-12-03 10:26:09 
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2021-12-03 10:27:51
 */
/*
 * @Author: g05047
 * @Date: 2021-07-28 09:57:18
 * @LastEditors: g05047
 * @LastEditTime: 2021-08-30 09:23:31
 * @Description: file content
 */
import Vue from 'vue';
import App from './App.vue';
import Element from 'element-ui';
import Cookies from 'js-cookie';
import i18n from './lang'; // Internationalization
import * as filters from './filters'; // global filters
import router from './router';
import store from './store';
import './assets/css/theme/index.css';
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import '@/styles/index.scss'; // global css
import './icons'; // icon
import './errorLog'; // error log
import './permission'; // permission control
// import './mock' // simulation data
import '@/api/http';
// 阻止用户多次点击
import '@/directive/noClick';
import '@/directive/index';
// 自己封装的全局组件
import '@/directive/compontent';
import '@/assets/css/global.css';
import '@/assets/css/iconfont/main.css';
// 富文本编辑器
import VueQuillEditor from 'vue-quill-editor';
import './assets/css/element-variables.scss'
import 'quill/dist/quill.core.css';
import 'quill/dist/quill.snow.css';
import 'quill/dist/quill.bubble.css';
import dataV from '@jiaminghi/data-view'

import VueFullscreen from 'vue-fullscreen'
Vue.use(VueFullscreen)
Vue.use(dataV)
// import BaiduMap from 'vue-baidu-map'
// Vue.use(BaiduMap, {
// 	/* 需要注册百度地图开发者来获取你的ak */
// 	ak: 'AafOWe2bCZ6RP2dhV16I7L5bz8DIt4VY'
// })
Vue.use(VueQuillEditor);
Vue.use(Element, {
  size: Cookies.get('size') || 'medium', // set element-ui default size
  i18n: (key, value) => i18n.t(key, value),
});
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key]);
});
// Vue.prototype.$error = (msg = '网络错误') => {
//   Element.Message.error(msg);
// };
import _ from 'lodash';
Vue.prototype.$_ = _;
// 导出表格
import JsonExcel from 'vue-json-excel';
Vue.component('downloadExcel', JsonExcel);

import '@/common/config';

Vue.config.productionTip = false;
new Vue({
  router,
  store,
  i18n,
  render: h => h(App),
}).$mount('#app');
// v-if="checkPermission(['admin','editor'])" 切换dom元素
// v-permission="['admin','editor']"检查权限
